#ifndef LRC_SEARCH_H
#define LRC_SEARCH_H
// #include "stm32f10x.h"

typedef enum {
  LRC_None = 0x00,
  LRC_L = 0x01,
  LRC_C = 0x02,
  LRC_R = 0x04,
  LRC_LR = 0x05,
  LRC_LC = 0x03,
  LRC_RC = 0x06,
  LRC_All = 0x07,
  LRC_BeforeStart = 0x08, // 开车前
  LRC_LnF = 0x10,         // 左丢线(left not found)
  LRC_RnF = 0x20,         // 右丢线(right not found)
  LRC_nF = 0x30,          // 丢线
  LRC_Err = 0x40
} LRCSearchState;

LRCSearchState LRCSearch(void);
void LRCReset(void);
#endif